<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div{
        overflow: hidden;
        width: 200px;
        height: 300px;
        background-color: #44d414;
        transition: 2s;
    }
    img{
        height: 300px;
    }
    div:hover{
        width: 500px;
    }
</style>
<body>
    <div>
        <img src="1.jpg" alt="">
    </div>
    
</body>
</html>